home *** CD-ROM | disk | FTP | other *** search
/ The Hacker Chronicles - A…the Computer Underground / The Hacker Chronicles - A Tour of the Computer Underground (P-80 Systems).iso / network / nia12 < prev    next >
Text File  |  1992-09-26  |  64KB  |  1,369 lines

  1.  
  2.   ZDDDDDDDDDDDDDDDDDD? IMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM; ZDDDDDDDDDDDDDDDDDD?
  3.   3   Founded By:    3 :  Network Information Access   : 3   Founded By:    3
  4.   3 Guardian Of Time 3 :            04APR90            : 3 Guardian Of Time 3
  5.   3   Judge Dredd    3 :       Guardian Of Time        : 3   Judge Dredd    3
  6.   @DDDDDDDBDDDDDDDDDDY :            File 12            : @DDDDDDDDDDBDDDDDDDY
  7.           3            HMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM<            3
  8.           3             IMMMMMMMMMMMMMMMMMMMMMMMMMMMMM;             3
  9.           @DDDDDDDDDDDDD6 VMS System Manager's Manual :DDDDDDDDDDDDDY
  10.                         :         Chapter 2.11        :
  11.                         HMMMMMMMMMMMMMMMMMMMMMMMMMMMMM<
  12.  
  13.  
  14.  
  15.                        CHAPTER 2  STARTING UP THE SYSTEM
  16.  
  17. The system startup procedure establishes the computing environment for your
  18. system
  19.  
  20. This chapter covers three major topics:
  21.  
  22. : How to start your system for the first time
  23. : How to create the proper computing environment whenever you restart your
  24.   system
  25. : How to shut down your system
  26.  
  27. Before you can use the procedures described in this chapter, you must first
  28. set up the hardware for each VAX processor.  To set up the hardware and
  29. install the VMS operating system, refer to the instructions in your VAX
  30. processor installation and operations guide.  After you have installed the
  31. operating system, you will be able to log into the SYSTEM account on your
  32. computer.
  33.  
  34. After the operating system has been successfully loaded, you can set up the
  35. proper computing environment for your system.  The site-specific system
  36. startup file, SYSTARTUP_V5.COM, is an essential aspect of establishing an
  37. environment specific to the needs of your site.  Section 2.4 describes how to
  38. modify SYSTARTUP_V5.COM to meet the needs of your site.
  39.  
  40. 2.1 STARTING UP YOUR SYSTEM FOR THE FIRST TIME
  41.  
  42. Instructions for installing the VMS operating system are included in the
  43. installation and operations guide for your processor.  You must choose whether
  44. you are installing the VMS operating system as a new installation or as an
  45. upgrade.  If you are installing the VMS operating system for the first time,
  46. you must use the new installation procedure.  If you already have a previous
  47. version of the VMS operating system on your processor, then you should use the
  48. upgrade procedure.  Instructions for a new installation are found in your
  49. processor installation and operations guide; instructions for an upgrade
  50. procedure are found in the Release Notes for the VMS operating system.
  51.  
  52. When you install the VMS operating system using the new installation
  53. procedure, the disk on which you install the operating system is first erased,
  54. and then a directory structure and the operating system itself is put in
  55. place.  When you use the upgrade procedure, the files for the VMS operating
  56. system are replaced (w/ files for the upgraded operating system), and all
  57. other files on your system disk (for example, data files, executable images
  58. that are NOT part of the operating system, and so on) remain as they are.
  59.  
  60. CAUTION:  if you use the new installation procedure for a processor that
  61. already has a previous version of the VMS operating system, you will DESTROY
  62. the previous contents of the disk that you designate as they system disk.
  63.  
  64. 2.2 BOOTING THE SYSTEM
  65.  
  66. Booting is the process of loading the operating system from the system disk
  67. into processor memory.  You can perform either a nonstop boot or a
  68. conversational boot.  A nonstop boot is the quickest and easiest method, and
  69. the operating system will automatically set system parameters that are
  70. appropriate for most computing activities for your system's hardware
  71. configuration.  A conversational boot requires you to supply more information
  72. during the boot process, but it allows you to change system parameters during
  73. the boot procedure.  See your VAX processor installation and operations guide
  74. for detailed booting instructions.
  75.  
  76. After a system shuts down, it must be rebooted before you can use it.  Some
  77. processors provide the capability of an automatic reboot; when you enable
  78. this feature, the system automatically attempts to reboot itself after it has
  79. been shut down.  For example, if your site experiences a power failure, a
  80. processor that has automatic reboot enabled restarts itself automatically
  81. after the power has been restored.  See your VAX processor installation and
  82. operations guide for information about automatic rebooting.
  83.  
  84. In unusual cases, the normal startup procedures will NOT work properly and
  85. troubleshooting may be necessary.  Section 2.9 describes procedures that you
  86. should follow if the normal startup procedure fails, or if you find yourself
  87. locked out of your system.
  88.  
  89. 2.3 LOGGING INTO THE NEW SYSTEM
  90.  
  91. When the boot procedure is complete, a message is displayed on the terminal
  92. from which the system is booted (except on workstations, where the message is
  93. displayed on the operators window).  The message is similar to the following:
  94.  
  95. VAX/VMS VERSION 5.0 08-JUN-1989 07:00:00.00
  96.  
  97. %%%%%%%%%%% OPCOM, <08-JUN-1980 07:00:01.P> %%%%%%%%%%%
  98. Logfile has been initialized by operator _OPA0:
  99. Logfile is SYS$SYSROOT: [SYSMGR]OPERATOR.LOG;1
  100.  
  101. %SET-I-INTSET, login interactive limit = 64, Current interactive value = 0
  102.   SYSTEM       job terminated at <08-JUN-1980 07:00:00.00
  103.  
  104. After you see this display, you can then log into the system managers account,
  105. using the following procedure:
  106.  
  107. 1.  Press the RETURN/ENTER key on the console terminal.
  108. 2.  In response to the system's request for your USERNAME, type SYSTEM.
  109. 3.  In response to the system's request for your PASSWORD, type the password
  110.     that you chose for the system account during installation.  You should
  111.     change your system password immediately after logging into the system for
  112.     the first time.  To change your password, enter the DCL command SET
  113.     PASSWORD.
  114.  
  115. CAUTION: DIGITAL recommends that you change the system manager's account
  116. password frequently to maintain system security.  The system manager's account
  117. has full privileges by default; therefore, you should exercise caution when
  118. using it.
  119.  
  120. After you enter your password, the system prints a welcome message on the
  121. console terminal.  If it is not your first time loggin in, the system also
  122. prints the time of your last login, for example:
  123.  
  124.      Welcome to VAX/VMS Version n.n
  125.  
  126.      Last interactive login at 01-Jun-1989 15:13:21.07
  127.  
  128. The command procedure SYS$EXAMPLES:MGRMENU.COM generates the system manager
  129. menu.  This command procedure can serve as a sample for designing site-specific
  130. system manager menus.
  131.  
  132. 2.4  STARTUP COMMAND PROCEDURE FOR YOUR SITE (SYSTARTUP_V5.COM)
  133.  
  134. A command procedure that sets up a computing environment for the specific
  135. needs of your site is executed each time that your system starts up.  This
  136. file is located in the system manager's directory, [SYSMGR], and it is called
  137. SYSTARTUP_V5.COM.  In order to customize SYSTARTUP_V5.COM for the needs of
  138. your site, you must make the appropriate edits to the file.  This section
  139. describes how to customize the SYSTARTUP_V5 command procedure.
  140.  
  141. After you install the VMS operating system, the file SYSTARTUP_V5.COM is
  142. placed in the [SYSMGR] directory.  SYSTARTUP_V5.COM is a template file, which
  143. means that it can be used as a basis or guide for creating a startup file that
  144. suits your own system.  In particular, the SYSTARTUP_V5.COM template includes
  145. sections that can perform the following tasks at startup time:
  146.  
  147. :  Mounting public disks
  148. :  Setting the characteristics of terminals and other devices
  149. :  Initializing and starting queues
  150. :  Installing known images
  151. :  Starting up the DECnet network
  152. :  Running the System Dump Analyzer
  153. :  Purging the operator's log file
  154. :  Submitting batch jobs that are run at system startup time
  155. :  Limiting the number of interactive users
  156. :  Starting up the LAT network
  157. :  Site-specific LAT command procedure
  158. :  Creating systemwide announcements
  159. :  Defining a system login command procedure
  160. :  Backing up the system
  161.  
  162. To modify SYSTARTUP_V5.COM, you can use any text editor.  This file is a
  163. command procedure, so any changes that you make must conform to the rules for
  164. command procedures, as described in the VMS GENERAL USER'S MANUAL.  In order
  165. to be used as a site-specific startup file, be sure to keep the file in the
  166. [SYSMGR] directory and use the file name SYSTARTUP_V5.COM.
  167.  
  168. To allow SYSTARTUP_V5.COM to continue in the event of an error, include the
  169. DCL command SET NOON at the beginning of the file, as follows:
  170.  
  171.                   $ SET NOON
  172.  
  173. This command disables error checking after the execution of each command in
  174. the SYSTARTUP_V5.COM.
  175.  
  176. The following sections describe many of the elements of your user environment
  177. that you can establish w/ SYSTARTUP_V5.COM.
  178.  
  179. 2.4.1  MOUNTING PUBLIC DISKS
  180.  
  181. A public disk is a disk that can be accessed by any system process.  In order
  182. to make a public disk available for use, the disk must be physically mounted
  183. and you must then use the MOUNT command.  You do not need to use the mount
  184. command for the system disk, because the system disk is already mounted when
  185. the system starts up.
  186.  
  187. This section describes how to mount disks in the SYSTARTUP_V5.COM file.  If
  188. your system uses any disks that should be mounted whenever the system is
  189. running, you should read this section.
  190.  
  191. To include MOUNT commands in SYSTARTUP_V5.COM to mount your public disks for
  192. systemwide access, use the following MOUNT command syntax:
  193.  
  194.                 $ MOUNT/SYSTEM ddcu:  volume_label logical_name
  195.  
  196. You use the /SYSTEM qualifier to mount the disk for systemwide access; this is
  197. called a public volume.  If you are in a VAXcluster environment, then you
  198. should also use the /CLUSTER qualifier in order to make the volume accessible
  199. to any user in the cluster.
  200.  
  201. The expression ddcu represents the physical device name.  You must always
  202. include a colon after the device name.  The expression volume_label is a label
  203. that you choose for the disk.  For example, if you mount a disk w/ the
  204. physical device name DRA1, and you choose USERFILES as the volume label for
  205. this disk, then you would include the following command in the
  206. SYSTARTUP_V5.COM file:
  207.  
  208.                             $ MOUNT DRA1:  USERFILES
  209.  
  210. The expression logical_name, in the context of the MOUNT command, is a logical
  211. volume name that is associated q/ the volume that you mount.  You can use the
  212. logical volume name (instead of the physical device name) in programs and
  213. procedures that are used on your system, and it is not necessary to know the
  214. physical drive on which the volume is mounted.
  215.  
  216. If you do not specify a logical volume name in the MOUNT command, then the
  217. logical volume name is in the form DISK$volume_label.  In the previous
  218. example, where no logical name was specified and the volume label was
  219. USERFILES, the MOUNT command would automatically assign the logical name
  220. DISK$USERFILES to the disk.
  221.  
  222. The following command produces the logical volume name USER and equates it to
  223. DRA1, the device name.  Note that the logical volume name USER is equivalent
  224. to DRA1 only while the disk is actually mounted; if the volume is dismounted,
  225. then the logical volume name no longer has any systemwide meaning.
  226.  
  227.                      $ MOUNT/SYSTEM  DRA1:  USERFILES USER
  228.  
  229. 2.4.2 SETTING DEVICE CHARACTERISTICS
  230.  
  231. On some systems, certain devices (such as terminals or printers) should have
  232. the same characteristics whenever the system is running.  Characteristics
  233. include defining the device as a printer, setting the transmission speed for
  234. terminals, and so on.  You can define these characteristics in the
  235. SYSTARTUP_V5.COM procedure.  REad this section you want to define certain
  236. characteristics for specific devices on your system.
  237.  
  238. To establish the characteristics of the terminals and other devices on the
  239. system, use a series of SET commands in SYSTARTUP_V5.COM.  Use the SET
  240. TERMINAL command for terminals; you may want to include comments to remind
  241. yourself of the user to whom specific terminals may be assigned.
  242.  
  243. Use the SET PRINTER command for printers.  Printer characteristics must be
  244. set before you establish queues for the printers.
  245.  
  246. The following example shows how you could modify SYSTARTUP_V5.COM to set up
  247. characteristics for terminals and a printer:
  248.  
  249. $ SET TERMINAL TTC2: /SPEED=300 /DEVICE_TYPE=LA36 /PERMANENT !JONES
  250. $ SET TERMINAL TTD1: /SPEED=9600 /PERMANENT                  !WRENS
  251. $ SET TERMINAL TTD4: /SPEED=1200 /PERMANENT                  !JRSMITH
  252. $ SET TERMINAL TTG4: /SPEED=1200 /MODEM /PERMANENT           !DIALUP1
  253. $ SET PRINTER /LA11 /PAGE=60 /WIDTH=80  LPA0:
  254.  
  255. For more information about the qualifiers available w/ the SET TERMINAL and
  256. SET PRINTER commands, see the VMS General Users Manual (NOTE: I'm going to
  257. start to type that manual up at the same time as this one starting 19-Jun-89).
  258.  
  259. 2.4.3 PRINTERS AND BATCH PROCESSING: INITALIZING AND STARTING QUEUES
  260.  
  261. If your system has a printer that you want to make available for general use
  262. (that is, a printer that is not connected directly to an individual terminal),
  263. you must establish a print queue.  Similarly, if you want to allow batch
  264. processing on your system, you must establish a batch queue.  A queue allows
  265. users to submit requests for printing or batch processing, and the system
  266. prints or processes the user' jobs as resources allow.
  267.  
  268. If you want to include printing or batch processing capabilities on your
  269. system, you should include commands in SYSTARTUP_V5.COM that do the following:
  270.  
  271. 1:  Start the system job queue manager
  272. 2:  Initialize and start each queue w/ a separate INITALIZ/QUEUE/START command
  273.     line
  274.  
  275. The following example shows how to start the system job queue manager and
  276. initialize and start queues in SYSTARTUP_V5.COM:
  277.  
  278. $ !
  279. $ ! Start the system job queue manager
  280. $ !
  281. $ START/QUEUE/MANAGER
  282. $ !
  283. $ ! Set printers spooled and establish printer queues
  284. $ !
  285. $ SET PRINTER/LOWER LAO:
  286. $ SET DEVICE/SPOOLED=SYS$PRINT LPA0:
  287. $ INITIALIZE/QUEUE/START/DEFAULT=FLAG/NOENABLE_GENERIC LPA0:
  288. $ !
  289. $ SET PRINTER/LOWER LPA0:
  290. $ SET DEVICE/SPOOLED=SYS$PRINT LPB0:
  291. $ ITITIALIZE/QUEUE/START/DEFAULT=FLAG/NOENABLE_GENERIC LPB0:
  292. $ !
  293. $ INITIALIZE/QUEUE/START/GENERIC=(LPA0,LPB0) SYS$PRINT
  294. $ !
  295. $ !Establish batch queues
  296. $ !
  297. $ INITIALIZE/QUEUE/START/BATCH/JOB_LIMIT=2/BASE_PRIORITY=3 SYS$BATCH
  298.  
  299. NOTE:  DIGITAL recommends using the /RESTART qualifier w/ the
  300. START/QUEUE/MANAGER command.  This qualifier causes the queue manager to
  301. restart automatically if the job controller should abort.
  302.  
  303. A spooled device directs the output of an application to an intermediate file
  304. until the application program finishes.  When the application completes, the
  305. file is submitted for printing.  A spooled device can help balance the
  306. workload demand on line printers if you are running applications on a
  307. time-shared system.  Use the SET DEVICE/SPOOLED command to establish spooled
  308. devices.
  309.  
  310. 2.4.4 INSTALLING KNOW IMAGES
  311.  
  312. You can install commonly used programs as known images to reduce the I/O
  313. overhead in activating those images and to assign attributes or privileges to
  314. the images.  If you have programs on your system that meet any of the
  315. following conditions, you should read this section and install such programs
  316. as known images in the SYSTARTUP_V5.COM startup file:
  317.  
  318. :  Programs that are frequently run
  319. :  Programs that are usually run concurrently by several processes
  320. :  Programs that require special privileges
  321.  
  322. All known images must be reinstalled each time the system is rebooted, because
  323. known file lists are not saved if the system is shut down or fails.  You
  324. include INSTALL commands in SYSTARTUP_V5.COM to install programs as known
  325. images.  Chapter 9 includes a discussion about performance characteristics and
  326. known images.
  327.  
  328. The following example shows a command sequence that might appear in
  329. SYSTARTUP_V5.COM for installing additional known images:
  330.  
  331. $ INSTALL
  332.  
  333. ADD/OPEN/SHARED/HEADER_RESIDENT BLISS32
  334. ADD/OPEN/SHARED MACRO32
  335. ADD/OPEN DIRECTORY
  336.  
  337. 2.4.5  STARTING UP THE DECNET NETWORK
  338.  
  339. The DECnet software lets your system communicate w/ other computers.  If you
  340. install DECnet software on your system, you must include commands in
  341. SYSTARTUP_V5.COM that start up the DECnet network.  REad this section if you
  342. have the DECnet software on your system.
  343.  
  344. If you have started a batch queue on your system (as described in an earlier
  345. section), then you should start the network using the following commands in
  346. SYSTARTUP_V5.COM:
  347.  
  348.  $ IF F$SEARCH("SYS$SYSTEM:NETACP.EXE")  .NES.  "" - ! This is faster, if you
  349.  $ THEN SUBMIT SYS$MANAGER:STARTNET.COM              ! have batch queues setup.
  350.  
  351. These commands submit the network startup procedure (SYS$MANAGER:STARTNET.COM)
  352. as a batch job, which reduces the amount of time it takes to boot your system.
  353. Alternatively, if you have not started a batch queue, use the following
  354. command in SYSTARTUP_V5.COM to start up the network:
  355.  
  356.  $ IF F$SEARCH("SYS$SYSTEM: NETACP.EXE")  .NES.  "" THEN @SYS$MANAGER:STARTNET
  357.  
  358. 2.4.6 RUNNING THE SYSTEM DUMP ANALYZER
  359.  
  360. In the event of a system failure, the System Dump Analyzer (SDA) can help you
  361. determine why the system failed.  In order to use SDA for this purpose, you
  362. should make sure that the system dump file is available for analysis and not
  363. overwritten by a new crash.  REad the rest of this section if you want to
  364. learn about using SDA w/ SYSTARTUP_V5.COM.
  365.  
  366. You can start SDA in your site-specific startup file by using the following
  367. lines in SYSTARTUP_V5.COM:
  368.  
  369.                  $ ANALYZE/CRASH_DUMP  SYS$SYSTEM: SYSDUMP.DMP
  370.                   COPY SYS$ERRORLOG: SYSDUMP.DMP  SYSDUMP.BACK
  371.  
  372. For further information, invoke the SDA for an interactive session upon
  373. completion of startup, or refer to the SDA documentation in the extended VMS
  374. documentation set.
  375.  
  376. CAUTION:  If you use the page file for the crash dump file, when the system
  377. reboots, you MUST enter the SDA command COPY to copy the dump[ from the page
  378. file to another file suitable for analysis.  If you fail to perform the copy
  379. operation, pages used to save the crash dump information are not released for
  380. paging, and your system hangs while executing STARTUP.COM in the rebooting
  381. process.
  382.  
  383. 2.4.7 PURGING OPERATORS LOG FILE
  384.  
  385. Each time the system is rebooted, a new version of OPERATOR.LOG is created in
  386. the SYS$MANAGER directory.  You should devise a plan for regular maintenance
  387. of these files.  Adding the following command to SYSTARTUP_V5.COM purges all
  388. but the last two (2) versions of the operator's log file:
  389.  
  390.                    $ PURGE/KEEP=2  SYS$MANAGER: OPERATOR.LOG
  391.  
  392. See Chapter 10 for additional suggestions for maintaining the operators log
  393. files.
  394.  
  395. 2.4.8 SUBMITTING BATCH JOBS THAT ARE RUN AT STARTUP TIME
  396.  
  397. Some sites may have batch jobs that are submitted at system startup time.  To
  398. submit such batch jobs, add SUBMIT commands to your SYSTARTUP_V5 file, in the
  399. following format:
  400.  
  401.                       $  SUBMIT [/qualifier,...] file-spec
  402.  
  403. In the following example, a batch job is submitted to run a command procedure
  404. that rebuilds the disks each time the system is initalized.
  405.  
  406.                     $  SUBMIT  SYS$MANAGER: SYSDISK_REBUILD
  407.  
  408. If you submit batch processing jobs in SYSTARTUP_V5.COM, make sure that the
  409. batch processing jobs are submitted after the batch queues have been
  410. initialized.  See Chapter 5 for more information on submitting batch jobs.
  411.  
  412. 2.4.9  DEFINING THE NUMBER OF INTERACTIVE USERS
  413.  
  414. You can set a limit for the number of interactive unsers that are allowed to
  415. be logged into your system at one time.  To do this, include the following
  416. command in SYSTARTUP_V5.COM:
  417.  
  418.    $  STARTUP$INTERACTIVE_LOGINS ==n <- where n is is where you would put a #
  419.  
  420. Where n is the maximum number of interactive users that are permitted to log
  421. in at one time.
  422.  
  423. NOTE:  the number of interactive users must be set to a value no greater than
  424. that which is authorized by your VAX processor license.
  425.  
  426. 2.4.10  STARTING UP THE LAT NETWORK
  427.  
  428. A LAT network is any local area network where terminal servers and operating
  429. systems use the Local Area Transport (LAT) protocol.  A LAT network can
  430. coexist on the same Ethernet w/ other protocols.  If your system uses a LAT
  431. network, you should read this section.
  432.  
  433. To configured your system as a service node w/in a LAT network, execute the
  434. command procedure SYS$MANAGER:LTLOAD.COM from w/in SYSTARTUP_V5.COM.LTLOAD.COM
  435. starts up the LAT protocol.  In the LAT protocol, a VMS operating system
  436. advertises its services over the Ethernet and responds to connection requests
  437. from terminal servers supporting user terminals and other asynchronous
  438. devices.
  439.  
  440. to start up the LAT network, add the following command line to
  441. SYSTARTUP_V5.COM:
  442.  
  443.                              $ @SYS$MANAGER: LTLOAD
  444.  
  445. To configured a node as a service node that connects only to interactive
  446. terminals on a terminal server, include the command line shown in the last
  447. example in SYSTARTUP_V5.COM.
  448.  
  449. However, if you want to use remote printers on a terminal server or to create
  450. dedicated application services on the VMS service node, you must modify
  451. LTLOAD.COM
  452.  
  453. SUPPORTING USER TERMINALS ON A TERMINAL SERVER
  454.  
  455. To create a VMS service node on a LAT network that supports only interactive
  456. terminals is a one-step procedure.  You insert the command @SYS$MANAGER:LTLOAD
  457. into SYSTEARTUP_V5.COM and append any of the following arguments:
  458.  
  459.                    $ @SYS$MANAGER:LTLOAD "P1" "P2" "P3" "P4"
  460.  
  461. The arguments P1/P4 have the following meanings:
  462.  
  463. P1..Service name..Name of the VMS service.  For clustered VMS service nodes,
  464. use the cluster name as the service name.  For independent VMS service nodes,
  465. use the physical node name.
  466.  
  467. P2 - P4..any of the following: /IDENTIFICATION="string"..Description of the
  468. node and its services that are advertised over the Ehternet.  The default is
  469. the string defined by the logical name SYS$ANNOUNCE.
  470.  
  471. /ENABLE=group-list..Terminal server groups qualified to establish connections
  472. w/ the VMS service node.  By default, Group 0 is enabled.
  473.  
  474. /DISABLE=group-list..Removes previously enabled terminal server groups.
  475.  
  476. The argument P1 assigns a service name to the node, using the LATCP command
  477. CREATE SERVICE.  Arguments P2 through P4 can be any valid qualifier to the SET
  478. NODE command.
  479.  
  480. For example, the following command creates the service OFFICE on the VMS node,
  481. MOE, which is part of the OFFICE cluster.
  482.  
  483.               $ @SYS$MANAGER:LTLOAD OFFICE "/ENABLE=1" "/DIABLE=0"
  484.  
  485. 2.4.11 CREATING SYSTEMWIDE ANNOUNCEMENTS
  486.  
  487. This section describes how to define the following types of systemwide
  488. announcements in your SYSTARTUP_V5.COM file:
  489.  
  490. : A message to users informing them that the system is available for use
  491.   (after a system boot)
  492.  
  493. : A message to users when first accessing the system for login
  494.  
  495. : A welcoming message when a user logs in
  496.  
  497. When your system has completed the startup procedure and is up and running,
  498. you can send a message to all connected terminals announcing the system's
  499. availability.  To do this, include a line, w/ an appropriate message w/in the
  500. quotation marks, before the $EXIT command in your SYSTARTUP_V5.COM file:
  501.  
  502. $ REPLY/ALL/BELL "VMS Operating System at NIGHTMARE 589-7840..READ FOR USE."
  503.  
  504. if you want to display at the beginning of each user's login procedure,
  505. include a line, w/ an appropriate message w/in the quotation marks, in
  506. SYSTARTUP_V5.COM:
  507.  
  508. $ DEFINE/SYSTEM SYS$ANNOUNCE "NIGHTMARE, 589-7840 -- AUHTORIZED USE ONLY"
  509.  
  510. You can also display a message to all interactive users immediately after they
  511. log in by including a line similar to the following in SYSTARTUP_V5.COM:
  512.  
  513. $ DEFINE/SYSTEM SYS$WELCOME "Welcome to the VMS Operating System at Nightmare,
  514.   589-7840."
  515.  
  516. If you do not define SYS$WELCOME, the following standard massaged is
  517. displayed:
  518.  
  519. Welcome to VMS version n.n
  520.  
  521. The SYSTARTUP_V5 command file supplied as a template w/ DIGITAL'S distribution
  522. kit includes additional command examples for SYS$ANNOUNCE and SYS$WELCOME.
  523.  
  524. You may also want to display various system announcements to users at the time
  525. they log in. You do this w/ a command in the systemwide login command
  526. procedure, SYLOGIN.COM, as explained later in this chapter.
  527.  
  528. 2.5 DEFINING A SYSTEM LOGIN COMMAND PROCEDURE
  529.  
  530. A system login command procedure is executed for each interactive ussr when
  531. the user logs in. W/ a system login command procedure, you can establish
  532. elements of a computing environment that are the same for all interactive
  533. users.  To use a system login procedure, you should do as follows:
  534.  
  535. 1. Define the logical name SYS$SYLOGIN, usually in your site-specific startup
  536. file (SYSTARTUP_V5.COM).
  537.  
  538. 2. Create a system login command procedure.
  539.  
  540. To define the logical name SYS$SYLOGIN and point to a system login command
  541. file name SYS$MANAGER:SYLOGIN.COM, include the following line in
  542. SYSTARTUP_V5.COM:
  543.  
  544. $ DEFINE/SYSTEM/EXEC/NOLOG SYS$SYSLOGIN SYS$MANAGER:SYLOGIN.COM
  545.  
  546. A template for a system login command procedure is found in
  547. SYS$MANAGER:SYLOGIN.COM.  This file includes commands that you can modify and
  548. add to according to the needs of your site.
  549.  
  550. You can use the system login command procedure to display announcements for
  551. your site.  To do this, you would do the following:
  552.  
  553. 1.  Create a text file that has current announcements, for example w/ the
  554. filename SYS$MANAGER:ANNOUNCEMENTS.TXT.  You could then update this file
  555. (adding/deleting announcements) as needed.
  556.  
  557. 2.  Include a line at the end of your system login command procedure that
  558. displays the announcements file, such as the following:
  559.  
  560. $ TYPE SYS$MANAGER: ANNOUNCEMENTS.TXT
  561.  
  562. In addition to a system login command procedure, users can also have their own
  563. login command procedures.  User login command procedures are executed
  564. immediately after the system login command procedure.
  565.  
  566. 2.6  BACKING UP THE SYSTEM
  567.  
  568. To limit the risk of losing your operating system environment, you should
  569. perform the following sequential operations after installing and customizing
  570. your system:
  571.  
  572. 1.  Back up the console volume
  573.  
  574. 2.  Build a standalone backup kit
  575.  
  576. 3.  Back up the system disk
  577.  
  578. If your processor has a console storage device, DIGITAL recommends that you
  579. make a backup copy of your console volume, it is useful to have a backup copy
  580. in case your original becomes corrupted.  The VMS operating system provides a
  581. command procedure called CONSCOPY.COM in the SYS$UPDATE directory that copies
  582. your console volume to a blank one.
  583.  
  584. To back up your system disk, DIGITAL recommends that you use standalone
  585. BACKUP, which uses a subset of Backup Utility qualifiers.  If your system was
  586. not distributed on magnetic tape, you must build a standalone BACKUP kit either
  587. on console media or on disk.  You can then boot standalone directory root SYSE
  588. on a Files-11 disk.
  589.  
  590. Installing and using standalone BACKUP in an alternate root on your system
  591. disk saves time when you are backing up your system disk,  because you do not
  592. have to boot standalone BACKUP from your console volume.
  593.  
  594. NOTE:  The procedures for backing up the console volume and backing up the
  595. system disk vary for different VAX processors.  See your VAX processor
  596. installation and operations guide for the step-by-step procedures that apply
  597. to your processor.
  598.  
  599. 2.7 BUILDING AND COPYING A VMS SYSTEM DISK
  600.  
  601. The command procedure SYS$UPDATE:VMSSKITBLD is used for building and copying a
  602. VMS system disk.  The procedure provides you w/ the following options:
  603.  
  604. :  BUILD -- Destroys all previous information on the target disk and then
  605.             builds the new system disk.
  606.  
  607. :  ADD   -- Adds another copy of the operating system to an alternate system
  608.             root directory on the same system disk.
  609.  
  610. :  COPY  -- Copies the operating system files to a target disk w/out
  611.             destroying the files that are currently on the target disk.
  612.  
  613. :  COMMON - Initialize the target disk and builds it as a cluster-common
  614.             system disk.
  615.  
  616. CAUTION:  The VMSKITBLD BUILD and COMMON options initialize the target disk,
  617. deleting, all of its previous contents.
  618.  
  619. In some cases, you may want the operating system to exist on another disk.
  620. The following paragraphs describe two such cases and the procedures that you
  621. would use.
  622.  
  623. You may want to move your operating system files to another disk.  for
  624. example, assume that your operating system is initially stored on a disk
  625. together w/ some of your user files.  Suppose that you want to move only the
  626. operating system files from original disk to a smaller disk.  You can build
  627. the operating system on the smaller disk (called the target/destination disk)
  628. w/out affecting the user files on the original disk (the source disk) by using
  629. the BUILD option of the VMSKITBLD command procedure.
  630.  
  631. You may want to create a separate test environment where you can modify the
  632. operating system w/out affecting current operations.  You could use the ADD
  633. option to copy the operating system to an alternate system root directory and
  634. create a boot command procedure to select that version for testing sessions.
  635. In addition, you may want to preserve the current version of the operating
  636. system before upgrading your system to the next major version.  To do so, use
  637. the ADD option to make a copy of the current operating system in an alternate
  638. system root directory (SYSA) and then upgrade and run the new version of the
  639. operating system in SYSO.
  640.  
  641. CAUTION:  When you copy the system disk using VMSKITBLD.COM, SYSUAF.DAT and
  642. all user-modified command files are NOT copied onto the target disk.
  643. VMSKITBLD.COM uses the site-specific template files w/ the TEMPLATE file type
  644. in building the new system disk.
  645.  
  646. 2.8 SYSTEM STARTUP PROCEDURES
  647.  
  648. This section describes the process that the VMS operating system follows when
  649. you boot your system.  This section is mostly informational -- that is, you
  650. usually do NOT have to do anything during the booting process, but you may want
  651. to know how the operating system is set up.
  652.  
  653. Each time that your system is booted, the VMS operating system initiates a
  654. startup procedure.  The startup procedure includes the execution of the
  655. following series of command procedures:
  656.  
  657. :  SYS$SYSTEM:STARTUP.COM -- A file containing a series of procedures that
  658.                              must execute at system startup time in order for
  659.                              the system to run properly.  STARTUP.COM is the
  660.                              site-independent startup command procedure
  661.                              supplied by DIGITAL.  Do not modify this command
  662.                              procedure.  The STARTUP.COM procedure invokes
  663.                              the site-specific procedures that are described
  664.                              in this section.
  665.  
  666. :  SYS$MANAGER:SYCONFIG.COM -- A template file suplied by DIGITAL to which you
  667.                                can add site-specific configuration commands.
  668.  
  669. :  SYS$MANAGER:SYLOGICALS.COM -- A termplate file supplied by DIGITAL for
  670.                                  defining logical names.  This file contains
  671.                                  a command procedure for adding system logical
  672.                                  names for a MicroVAX that is not in a cluster
  673.                                  If your processor is not a standalone Micro
  674.                                  Vax, you can ignore that section of the
  675.                                  procedure that pertains only to MicroVax
  676.                                  systems and add any systemwide logical name
  677.                                  assignments for your own system to the end
  678.                                  of this file.
  679.  
  680. :  SYS$MANAGER:SYLOGIN.COM -- A template file supplied by DIGITAL to which you
  681.                               can add commands that are executed whenever a
  682.                               user logs in.
  683.  
  684. :  SYS$MANAGER:SYSTARTUP_V5.COM -- A template file supplied by DIGITAL to
  685.                                    which you can add various commands for
  686.                                    setting up site-specific operations that
  687.                                    are executed at startup time.  The template
  688.                                    contains commands that you can modify to
  689.                                    meet the needs of your processing
  690.                                    environment.
  691.  
  692. :  SYS$MANAGER:SYPAGSWPFILES.COM -- A file supplied by DIGITAL to which you
  693.                                     can add commands to install page and swap
  694.                                     files on any disk.
  695.  
  696. Two versions of the template files are included in your VMS distribution kit:
  697. an executable version w/ the file name extension COM, and a nonexecutable
  698. version w/ the file extension TEMPLATE (for example, SYS$MANAGER:SYCONFIG.COM
  699. and SYS$MANAGER:SYCONFIG.TEMPLATE).  The files w/ the COM filetype are
  700. executed at startup time, and those are the files that you should modify to
  701. meet the needs of your site.  The files w/ the TEMPLATE filetype should NOT be
  702. modified.
  703.  
  704. CAUTION:  Do NOT delete the DIGITAL-supplied template command files w/ the
  705. TEMPLATE file type.  The VMSKITBLD.COM procedure uses the TEMPLATE versions to
  706. create a new system disk.
  707.  
  708. More information on STARTUP.COM and the site-specific command procedures is
  709. provided in the sections that follow.
  710.  
  711. 2.8.1  STARTUP COMMAND PROCEDURE FOR THE SYSTEM (STARTUP.COM)
  712.  
  713. This section describes the system startup file (STARTUP.COM).  STARTUP.COM is
  714. executed whenever the system is booted, and it creates the basic environment
  715. for the operating system and some software products.  It is not a startup file
  716. that is customized for your site.  You should not modify the STARTUP.COM file.
  717. Read this section if you are interested in learning about the startup process.
  718.  
  719. The file SYSTARTUP_V5.COM, which is also executed each time the system is
  720. booted, is the startup file where you include features specific to your site.
  721. To learn how to customize the startup process for your site by modifying
  722. STARTUP_V5.COM, see section 2.4.
  723.  
  724. The file SYS$SYSTEM:STARTUP.COM executes immediately after the operating
  725. system is booted.  It is a driver that uses a series of component files to
  726. perform the following startup tasks:
  727.  
  728. :  Defines systemwide logical names required for the symbolic debugger,
  729. language processors, linker, image activator, and help processor.
  730.  
  731. :  Start processes that control error logging, SMISERVER (the system
  732. management server), the job controller, and the operator's log.  (on a
  733. standalone workstation the operator's log is not automatically started.)
  734.  
  735. :  Connects and configured devices that are physically attached to the system
  736. and loads their I/O drivers by invoking the SYCONFIG.COM procedure.
  737.  
  738. : Installs known images to reduce I/O overhead in activating the most commonly
  739. fun images or to identify images that must have special privileges.
  740.  
  741. CAUTION:  Do not modify SYS$SYSTEM:STARTUP.COM. This file is deleted and
  742. replaced each time you upgrade your system w/ the next version of the VMS
  743. operating system.  Leaving STARTUP.COM intact prevents you from inadvertently
  744. altering any commands in the file, which in turn could cause the startup
  745. procedure to fail.
  746.  
  747. All of the component files used by STARTUP.COM are in the directories w/ the
  748. logical name SYS$STARTUP.  SYS$STARTUP is actually a searchlist that includes
  749. both SYS$SYSROOT:[SYSMGR] (the SYS$MANAGER directory) and
  750. SYS$SYSROOT:[SYS$STARTUP].
  751.  
  752. In VMS Version 5.0, the following three data files are involved in startup
  753. process and located in SYS$STARTUP:
  754.  
  755. 1.  VMS$PHASES.DAT--This file determines the order of the phases of the
  756. startup procedure.  It is a sequential list of phases that will be started by
  757. STARTUP.COM.  It includes a series of four (4) basic phases ( INITIAL,
  758. CONFIGURED, SYSFILES, & BASEENVIRON)  needed to bring the VMS operating system
  759. up to a basic working environment, followed by a series of phases for optional
  760. software products.  This file must not be modified.
  761.  
  762. 2.  VMS$VMS.DAT--This is a component data file for starting the vase VMS
  763. operating system environment.  You should NOT modify this file.
  764.  
  765. 3.  VMS$LAYERED.DAT--This is a component file for optional software products
  766. that are installed using the callback procedure of VMSINSTAL.  It is an
  767. indexedsequential file, containing the following fields for each file:
  768.  
  769.    1.  Name of the component file(either .EXE or .COM) to be run.
  770.  
  771.    2.  Phase in which the component file is to be run.  The valid phases are
  772.        LPBEGIN, LPMAIN (default), LPBETA, & END.
  773.  
  774.    3.  Method (or mode) by which the component file is to run.  The valid
  775.        choices are DIRECT(the default, where the command procedure or image
  776.        is executed immediately), BATCH(valid only for command procedures,
  777.        or SPAWN.
  778.  
  779.    4.  Node restrictions for the component.  This is either the node or nodes
  780.        on which the component file should ONLY be run, or the node or nodes on
  781.        which the component file should NOT be run.
  782.  
  783.  
  784.    5.  Node restriction byte field.  This field determines whether the nodes
  785.        listed in the previous field are allowed or disallowed (for running
  786.        the component).
  787.  
  788.    6.  Parameters passes to the component file for execution.  You can pass up
  789.        to eight parameters, using the following format:
  790.  
  791.        (P1:args, P2: args,...)
  792.        (The parentheses can be omitted if you pass only a single parameter.)
  793.  
  794. An important function of each phase is to meet the prerequisites of the
  795. following phase; therefore, the ordering of the phases is extremely
  796. important.  Components that occur in a phase cannot have dependencies on
  797. components that are in the same phase or in subsequent phases.  When
  798. installing optional software products as known images using the STARTUP.COM
  799. procedure, be sure that all requisite components occur in a previous phase.
  800.  
  801. If an optional software product can use the callback procedure included in
  802. VMSINSTALL, then you can install it as a known image at system startup using
  803. the method described earlier in this section, and you do not have to include
  804. the product in the site-specific startup file(SYSTARTUP_V5.COM).  In these
  805. cases, the component files must be in the SYS$STARTUP directory.  Software
  806. products that do not use the callback procedure should be installed as known
  807. images at system startup using SYSTARTUP_V5.COM.
  808.  
  809. You can also use the System Management Utility (SYMAN) to manage the new
  810. startup process.  W/ the STARTUP command of SYSMAN, you can add, modify,
  811. display, or remove elements of existing component files, create a new startup
  812. file and perform other startup functions.  A description of SYSMAN commands is
  813. found in the Reference section.
  814.  
  815. Several site-specific command procedures are executed from w/in STARTUP.COM.
  816. You can add commands to these files or modify the template files supplied in
  817. your VMS distribution kit.  Remember, however, to modify only the executable
  818. version of the file(w/ the file extension .COM)and not the template version
  819. (w/ the file extension TEMPLATE).  If you have an existing .COM file and you
  820. want to modify a version of the original TEMPLATE  file, then you should first
  821. make a copy of the TEMPLATE file(giving the copy a filetype of .COM).
  822.  
  823. STARTUP.COM executes the site-specific command procedures in the following
  824. sequence:
  825.  
  826. 1.  SYS$MANAGER:SYPAGSWPFILES.COM
  827. 2.  SYS$MANAGER:SYCONFIG.COM
  828. 3.  SYS$MANAGER:SYLOGICALS.COM
  829. 4.  SYS$MANAGER:SYSTARTUP_V5.COM
  830.  
  831. 2.8.2  SETTING UP LOGICAL NAMES FOR YOUR SITE (SYLOGICALS.COM)
  832.  
  833. A logical name is a name that is equivalent to a file specification, a
  834. directory, a device name, another logical name, or some other equivalence
  835. string.  For example, when you have a logical name associated w/ a device
  836. name, you can use the logical name instead of the formal device name.
  837.  
  838. You can assign logical names that apply for the entire system; these are
  839. called systemwide logical names, and they can be used by any process on the
  840. system.  For example, if a systemwide logical name equated the logical name
  841. FINANCE_DISK to the device DRA2, any user on the system (and any program
  842. running on the system) could use the name FINANCE_DISK in place of DRA2.
  843.  
  844. The file SYS$MANAGER:SYLOGICALS.COM can be used for assigning systemwide
  845. logical names.  SYLOGICALS.COM is executed as part of the STARTUP.COM
  846. procedure whenever your system is booted.  The logical names defined in
  847. SYLOGICALS.COM (as well as the logical names assigned automatically in
  848. STARTUP.COM) are always included in the system logical name table.
  849.  
  850. If your system is a MicroVAX that is NOT in a cluster, you should use the file
  851. SYLOGICALS.COM as a template for assigning systemwide logical names.  If you
  852. have a MicroVAX that is not in a VAXcluster environment and you want to have
  853. systemwide logical names, you should read this section.
  854.  
  855. Unless your processor ia a MicroVAX that is NOT in a VAXcluster environment,
  856. the template procedure that is found in SYLOGICALS.COM has NO effect.
  857. However, if your processor is on where the template procedure does not apply,
  858. you can still use SYLOGICALS.COM to assign systemwide logical names by adding
  859. them to SYLOGICALS.COM before the EXIT command, as indicated in the
  860. SYLOGICALS.COM template.
  861.  
  862. During VMS system operations when the integrity of the system could be
  863. compromised by incorrect logical names, such as the activation of privileged
  864. images (LOGINOUT,MAIL, etc...) only executive-mode and kernel-mode logical
  865. names are used; supervisor-mode and user-mode names are ignored.  DIGITAL
  866. therefore recommends that logical names for system components (for example,
  867. public disks/directories) be defined in executive mode, for example:
  868.  
  869. $ DEFINE/SYSTEM/EXECUTIVE/NOLOG SYSDSK SYS$SYSDEVICE:
  870.  
  871. See the VMS General Users Manual for information about logical name
  872. assignments and the privilege modes.
  873.  
  874. 2.9  EMERGENCY STARTUP PROCEDURES
  875.  
  876. The startup and login procedures provided by DIGITAL should always work;
  877. however, certain user interventions may cause them to fail.  For example, if
  878. you modify the startup of login procedures, or modify the login accounts, you
  879. may accidentally lock yourself out of the system.  A very simple way to lock
  880. yourself out of the system is to set passwords and forget them.  Another way
  881. to lock yourself out of the system is to introduce an error condition or an
  882. infinite loop into a startup or login procedure.  Under such circumstances,
  883. use the emergency startup procedure described in this section.
  884.  
  885. 2.9.1  BYPASSING THE USER AUTHORIZATION FILE
  886.  
  887.  
  888. The preferred method of breaking into a locked system is to set the alternate
  889. user authorization file.  This method requires setting the system parameter
  890. UAFALTERNATE, which defines the logical name SYSUAF to refer to the file
  891. SYS$SYSTEM:SYSUAFALT.DAT.  If this file is found during a normal login, the
  892. system uses it to validate the account and prompts you for the user
  893. name/password.
  894.  
  895. If this file is not located, the system assumes that the UAF is corrupt and
  896. accepts any user name/password to log you into the system from the system
  897. console.  Logins are prohibited from all other locations.
  898.  
  899. NOTE:  You can use this method only to log into the system from the console
  900. terminal; you cannot use other terminal lines.
  901.  
  902. To set the alternate user authorization file, use the following procedure:
  903.  
  904. 1.  Perform a conversational boot by following the instructions in your VAX
  905.     processor installation/operations guide.
  906.  
  907. 2.  When the SYSBOOT> prompt appears, enter the following command:
  908.  
  909. SYSBOOT> SET UAFALTERNATE 1
  910.  
  911. 3.  Type CONTINUE and press RETURN/ENTER KEY.
  912.  
  913. 4.  When the startup procedure completes, log in on the console terminal by
  914.     entering any user name/password in response to the USERNAME: and then the
  915.     PASSWORD: prompts.
  916.  
  917.     The system assigns the following values to your user account:
  918.     : NAME -User Name
  919.     : UIC  -[001,004]
  920.     : command Interpreter -DCL (Digital Command Language)
  921.     : Login Flags -None
  922.     : Priority -Value of the system parameter DEFPRI
  923.     : Resources -Values of the PQL system parameters
  924.     : Privileges -All
  925.     The process name is usually the name of the device on which you logged in
  926.     (for example, _OPA0:).
  927.  
  928. 5.  Fix the problem that caused you to be locked out of the system.  That is,
  929.     make the necessary repairs to the UAF or to the startup or login
  930.     procedures.  (If you modify a login or startup procedure and the problem is
  931.     still not solved, you should restore the procedure to its previous state.)
  932.     If the problem is a forgotten password, reset the UAFALTERNATE system
  933.     parameter to 0, as explained in the next step.  Then invoke the Authorize
  934.     Utility and type HELP MODIFY for information on modifying passwords.
  935.  
  936. 6.  Clear the UAFALTERNATE parameter by running SYSGEN and giving appropriate
  937.     SYSGEN commands.  To run SYSGEN, enter the following command at the DCL
  938.     prompt:
  939.     $ RUN SYS$SYSTEM:SYSGEN
  940.  
  941.     The SYSGEN> prompt is displayed, and you should enter the following
  942.     commands:
  943.     SYSGEN> SET UAFALTERNATE 0
  944.     SYSGEN> WRITE CURRENT
  945.     SYSGEN> EXIT
  946.  
  947. 7.  Shut down and reboot the system.
  948.  
  949. 2.9.2  EMERGENCY STARTUP AFTER MODIFYING SYSTEM PARAMTERS
  950.  
  951. In some cases, modifying system parameters may cause the system to become
  952. unbootable.  If this occurs, use the following emergency startup procedure to
  953. restore to normal operation:
  954.  
  955. 1.  Perform a conversational boot by following the instructions in your VAX
  956.     processor installation/operations guide.
  957.  
  958. 2.  When the SYSBOOT> prompt appears, enter the following commands:
  959.     SYSBOOT> USE DEFAULT.PAR
  960.     SYSBOOT> CONTINUE
  961.  
  962. 3.  When the system finishes booting, review any changes you made to SYSGEN
  963. parameters, modify MODPARAMS.DAT as necessary, and reexecute AUTOGEN.
  964.  
  965. 2.9.3  BYPASSING STARTUP/LOGIN
  966.  
  967. If the system does not complete the startup procedures or does not allow you
  968. to log in, bypass the startup/login procedures by following these steps:
  969.  
  970. 1.  Perform a conversational boot by following the instructions in your VAX
  971.     processor installation/operations guide.
  972.  
  973. 2.  Define the console to be the startup procedure by entering the following
  974.     command at the SYSBOOT> prompt:
  975.  
  976.     SYSBOOT> SET/STARTUP OPA0:
  977.  
  978.     type CONTINUE and press Return/Enter in response to the next SYSBOOT>
  979.     prompt.  Wait for the DCL prompt to return.
  980.  
  981. 3.  Correct the error condition that caused the login failure.  That is, make
  982.     the necessary repairs to the startup/login procedures, or to the UAF.  You
  983.     may want to enter the following DCL commands because bypassing the startup
  984.     procedures leaves the system in a partially initalized state:
  985.  
  986.     $ SET NOON
  987.     $ SET DEFAULT SYS$SYSROOT: [SYSEXE]
  988.  
  989.    Invoke a text editor to correct the startup/login procedure file.  Note
  990.    that some system consoles may NOT supply a screen/mode editor.  You can
  991.    also copy a corrected file and delete the incorrect version by using
  992.    the RENAME/DELETE commands.
  993.  
  994. 4.  Reset the startup procedure by invoking SYSGEN and entering the following
  995.     commands:
  996.  
  997.     $ RUN SYS$SYSTEM:SYSGEN
  998.     SYSGEN> SET/STARTUP SYS$SYSTEM:STARTUP.COM
  999.     SYSGEN> WRITE CURRENT
  1000.     SYSGEN> EXIT
  1001.  
  1002. 5. Perform a normal startup by entering the following command:
  1003.  
  1004.    $ @SYS$SYSTEM:STARTUP
  1005.  
  1006. 2.9.4 STARTUP PROBLEMS
  1007.  
  1008. Sometimes the operating system does not boot after you enter the BOOT command.
  1009. This can be caused by either a hardware/software malfunction.
  1010.  
  1011. A read error on a disk drive or console medium, or a machine check error, may
  1012. indicate a hardware malfunction.  When a hardware problem occurs, a question
  1013. mark (?) usually precedes the error message that is displayed on the system
  1014. console terminal.  You should then do the following:
  1015.  
  1016. 1.  Consult the hardware manual for your VAX processor.
  1017.  
  1018. 2.  If you still cannot correct the problem, contact your DIDGITAL FIELD
  1019.     REPRESENTATIVE.
  1020.  
  1021. When the operating system is loaded into memory but the STARTUP.COM command
  1022. procedure does not execute, a software malfunction has probably occurred.  You
  1023. should suspect this condition if the usual message specifying the number of
  1024. interactive users does not appear.
  1025.  
  1026. Perform one or both of the following actions to correct the situation:
  1027.  
  1028. 1.  Try again, by repeating the boot procedure to restart the system.
  1029.  
  1030. 2.  Leave the system disk in the original drive.  Restore a backup copy of the
  1031.     system disk using Standalone Backup.
  1032.  
  1033. 2.10  SHUTDOWN PROCEDURES
  1034.  
  1035. The VMS operating system provides the flowing types of shutdown procedures:
  1036.  
  1037. :  An orderly shutdown w/ SYS$SYSTEM:SHUTDOWN.COM.  This procedure shuts down
  1038.    the system while performing housekeeping functions such as disabling
  1039.    future logins, stopping the batch and output queues, dismounting mounted
  1040.    volumes, and stopping user processes.
  1041.  
  1042.    SHUTDOWN.COM optionally invokes a site-specific command procedure named
  1043.    SYS$MANAGER:SYSHUTDWN.COM, which you can modify to meed the needs of your
  1044.    basic installation.  An empty SYSHUTDWN.COM file is included in your VMS
  1045.    distribution kit.
  1046.  
  1047. :  An emergency shutdown w/ OPCCRASH.  If you are unable to perform an orderly
  1048.    shutdown w/ SHUTDOWN.COM, run the OPCCRASH emergency shutdown program.
  1049.  
  1050. :  An emergency shutdown w/ CRASH.  Use this emergency shutdown procedure if
  1051.    OPCCRASH fails.  Note that not all VAX processors have the CRASH program.
  1052.    If your VAX processor has the CRASH procedure, it is located on the console
  1053.    media, and it can only be executed from the console terminal.  See your
  1054.    VAX processor installation/operations guide for a description of the CRASH
  1055.    procedure or for the equivalent commands to use to force an abrupt
  1056.    emergency shutdown.
  1057.  
  1058. 2.10.1  ORDERLY SHUTDOWN W/ SHUTDOWN.COM
  1059.  
  1060. Use SHUTDOWN.COM to shut down the system in an orderly fashion.  Do not
  1061. modify SHUTDOWN.COM.  Add commands to the SYS$MANAGER:SYSHUTDWN.COM command
  1062. procedure to perform site-specific functions.
  1063.  
  1064. To execute SHUTDOWN.COM, you must have either the SETPRV privilege or all the
  1065. following privileges:  CMKRNL, EXQUOTA, LOG_IO, OPER, SYSNAM, SYSPRV, TMPMBX,
  1066. and WORLD.  Usually, you shut down the system from the SYSTEM account, which
  1067. includes these privileges by default.
  1068.  
  1069. 2.10.1.1  SHUTDOWN.COM SEQUENCE OF PROMPTS AND MESSAGES
  1070.  
  1071. To perform an orderly shutdown of the system, invoke SHUTDOWN.COM from any
  1072. terminal and any privileged account w/ the following DCL command:
  1073.  
  1074. $  @SYS$SYSTEM:SHUTDOWN
  1075.  
  1076. The procedure then prompts you w/ a series of questions and messages.  The
  1077. default response appear in brackets at the end of each question.  Press the
  1078. RETURN key to select the default response.  A summary of the questions
  1079. follows:
  1080.  
  1081. :  Minutes until shutdown:
  1082.    How many minutes until final shutdown [0]?
  1083.  
  1084.    Enter an integer.  If the system logical name SHUTDOWN$MINIMUM_MINUTES is
  1085.    defined, its integer value is the minimum value that you can enter.
  1086.    Therefore, if the logical name is defined as 10, you must specify at least
  1087.    10 minutes to final shutdown or an error message is returned.  If you do
  1088.    not enter a value, the logical name value is used.  If the logical name is
  1089.    not defined, and you do not enter a value, 0 minutes is the default.
  1090.  
  1091. :  Reason for shutdown:
  1092.    Reason for shutdown [standalone]:
  1093.  
  1094.    Enter a one-line reason for shutting down the system.
  1095.  
  1096. :  Decide if you want to spin down the disk volumes:
  1097.    Do you want to spin down the disk volumes [No]?
  1098.  
  1099.    Enter Yes or No (Y or N).  Note, however,  that the system disk cannot
  1100.    be spun down.
  1101.  
  1102. :  Decide if you want to invoke a site-specific shutdown procedure:
  1103.    Do you want to invoke the site-specific shutdown procedure [Yes]?
  1104.  
  1105.    Enter Yes or No.  This refers to SYS$MANAGER:SYSHUTDWN.COM.
  1106.  
  1107. :  Decide if you want an automatic system reboot:
  1108.    Should an automatic system reboot be performed [No]?
  1109.  
  1110.    By default, the system does not automatically reboot.  However, if you
  1111.    respond w/ YES, the system attempts to reboot automatically when the
  1112.    shutdown is complete.
  1113.  
  1114. :  Message broadcast to users about rebooting the system:
  1115.    When will the system be rebooted [later]?
  1116.  
  1117.    Enter the expected reboot time in the format you want printed in the
  1118.    message that will be broadcast to users.  For example, you could specify
  1119.    IMMEDIATELY, or IN 10 MINUTES, or a time such as 2 PM, or 14:00.  If you
  1120.    do not know when the system will be available again, press RETURN to
  1121.    specify 'later' as the time when the system will reboot.
  1122.  
  1123. :  Shutdown options:
  1124.    Shutdown options (enter as a comma--separated list):
  1125.    SAVE_FEEDBACK      : Saves feedback data for AUTOGEN calculations
  1126.    REMOVE_NODE        : Remaining nodes in the cluster should be adjust quorum
  1127.    CLUSTER_SHUTDOWN   : Entire cluster is shutting down
  1128.    REBOOT_CHECK       : Check existence of basic system files
  1129.    Shutdown options [NONE]
  1130.  
  1131.    The procedure prompts you to specify one or more shutdown options.
  1132.  
  1133. Entering the SAVE_FEEDBACK option records feedback data collected from the
  1134. system since it was last booted.  This option creates a new version of the
  1135. AUTOGEN feedback data file, which can be used when you next run AUTOGEN.
  1136.  
  1137. If your system is a cluster member, all options are listed.  When the
  1138. REMOVE_NODE option is specified on one cluster member system, users on all
  1139. member systems are notified.  Clusterwide notification is required, because
  1140. users logged in to any member system may be affected by the shutdown of another
  1141. system, for example:
  1142.  
  1143. :  Users may have batch jobs running on other systems.
  1144. :  If terminal servers are in operation, users may have alternate terminal
  1145.    sessions in progress on the system being shut down.
  1146.  
  1147. Otherwise, only the REBOOT_CHECK and SAVE_FEEDBACK options are listed.  Enter
  1148. REBOOT_CHECK to verify the presence of a subset of files necessary to reboot
  1149. the system after shutdown completes.  (if you are certain that the files exist,
  1150. press RETURN.)
  1151.  
  1152. If you select the REBOOT_CHECK option, the procedure checks for the necessary
  1153. files and notifies you if any are missing.  Replace missing files before
  1154. proceeding.  If all files are present, the following success message appears:
  1155.  
  1156. %SHUTDOWN-I-CHECKOK, Basic reboot consistency check completed.
  1157.  
  1158. The following events occur as the shutdown procedure continues, and the
  1159. corresponding messages are printed on the terminal:
  1160.  
  1161. 1.  A message requesting users to log out is broadcast at decreasing time
  1162.     intervals to all users on the system.
  1163.  
  1164. 2.  The system logical name SHUTDOWN$TIME is defined as the absolute time of
  1165.     shutdown.  For example, if the value 10 is specified at 12:00 in response
  1166.     to the first question, the logical name is assigned the absolute time value
  1167.     12:10 along w/ the date.  By requesting the logical name definition
  1168.     SHUTDOWN$TIME (w/ the SHOW LOGICAL command), you can see if a shutdown is
  1169.     in progress or determine the actual time of shutdown.  This feature is
  1170.     useful if a user missed the shutdown broadcast message.
  1171.  
  1172. 3.  At six minutes or less until system shutdown, the terminal from which
  1173.     shutdown was invoked is made an operator's console and all future
  1174.     nonoperator logins are disabled.  If the DECnet network is running, it
  1175.     is shut down.
  1176.  
  1177. 4.  When there is one minute left until system shutdown, batch and device
  1178.     queues and the system job queue manager are stopped.
  1179.  
  1180. 5.  At zero minutes before system shutdown the site-specific command procedure
  1181.     SYS$MANAGER:SYSHUTDWN.COM is invoked.
  1182.  
  1183. 6.  All user processes are stopped; however, system processes continue.
  1184.     Ancillary Control Processes (ACP's) may delete themselves when their
  1185.     mounted volumes are finally dismounted.
  1186.  
  1187. 7.  For dual-processor systems, the secondary processor is stopped.
  1188.  
  1189. 8.  All installed images are removed.
  1190.  
  1191. 9.  All mounted volumes are dismounted and, if you request it, the disks are
  1192.     spun down.  Note, however, that the system disk cannot be spun down.  Also,
  1193.     the quorum disk (if present on your system) is not dismounted or spun down.
  1194.  
  1195. 10.  The operator's log file is closed.
  1196.  
  1197. 11.  The program SYS$SYSTEM:OPCCRASH is invoked to shut down the system.
  1198.  
  1199. 12.  If you did not request an automatic reboot, the following message appears
  1200.      on the system console:
  1201.  
  1202.      SYSTEM SHUTDOWN COMPLETE -- USE CONSOLE TO HALT SYSTEM
  1203.  
  1204.      iF you requested an automatic reboot, the system reboots, provided the
  1205.      necessary controls are set.
  1206.  
  1207. 13.  If you are not automatically rebooting, halt the system after the
  1208.      previous message is printed at the console terminal.
  1209.  
  1210. Example 2-1 demonstrates an orderly system shutdown on standalone node AVALON.
  1211.  
  1212. EXAMPLE 2-1:  ORDERLY SYSTEM SHUTDOWN W/ SHUTDOWN.COM
  1213. -----------------------------------------------------
  1214.  
  1215. $ @SYS$SYSTEM:SHUTODOWN
  1216.  
  1217.          SHUTDOWN -- Perform an Orderly System Shutdown
  1218.  
  1219. How many minutes until final shutdown [0]:  10
  1220. Reason for shutdown:  [Standalone]  MONTHLY PREVENTIVE MAINTENACNE.
  1221. Do you want to spin down the disk volumes [NO]? RETURN
  1222. Do you want to invoke the site-specific shutdown procedure [Yes]?  RETURN
  1223. Should an automatic system reboot be performed [NO]? RETURN
  1224. When will the system be rebooted [Later]? 12:30
  1225. Shutdown options:
  1226. REBOOT_CHECK     :  Check existence of basic system files
  1227.  
  1228. shutdown options [NONE]:  RETURN
  1229.  
  1230. SHUTDOWN message on AVALON, from user SYSTEM at _AVALON$OPA0:  12:00:00.20
  1231. AVALON will shut down in 10 minutes; back up 12:30. Please log off node AVALON.
  1232. MONTHLY PREVENTIVE MAINTENANCE
  1233.  
  1234. %SHUTDOWN-I-OPERATOR, This terminal is now an operator's console.
  1235. %%%%%%%%%%% OPCOM, 16JUL1988 12:01:00.15 (NOTE THE TIME WILL BE ACUTAL TIME)
  1236. Operator status for operator _AVALON$OPA0:
  1237. CENTRAL, PRINTER, TAPES, DISKS, DEVICES, CARDS, NETWORK, OPER1, OPER2, OPER3,
  1238. OPER4, OPER5, OPER6, OPER7, OPER8, OPER9, OPER10, OPER11, OPER12
  1239.  
  1240. %SHUTDOWN-I-DISLOGINS, Interactive logins will now be disabled.
  1241. %SET-I-INTSET, login interactive limit = 0 current interactive value = 17
  1242. %SHUTDOWN-I-SHUTNET, the DECnet network will now be shut down.
  1243. %SHUTDOWN-I-STOPQUEMAN, The queue manager will now be stopped.
  1244.  
  1245. SHUTDOWN message on AVALON, from user SYSTEM at _AVALON$OPA0: 12:05:00.20
  1246. AVALON will shut down in 5 minutes; back up 12:30.  Please log off node AVALON.
  1247. MONTHLY PREVENTIVE MAINTENANCE
  1248.  
  1249. 17 terminals have been notified on AVALON.
  1250.  
  1251. SHUTDOWN message on AVALON from user SYSTEM at _AVALON$OPA0:  12:06:55.28.
  1252. AVALON will shut down in 4 minutes; back up 12:30.  Please log off node AVALON.
  1253. MONTHLY PREVENTIVE MAINTENANCE
  1254.  
  1255. %%%%%%%% OPCOM, 16-Jul-1988 12:07:12:30  %%%%%%%%
  1256.  
  1257. Message from user DECnet on AVALON
  1258. DECnevt even 2.0, local node state change
  1259. >From node 2.161 (AVALON), 16-Jul-1988 12:07:22.26
  1260. Operator command, old state = on, New state = Shut
  1261.  
  1262. SHUTDOWN message on AVALON from user SYSTEM at _AVALON$OPA0: 12:07:12:56
  1263. AVALON will shut down in 3 minutes; back up 12:30.  Please log off node AVALON.
  1264. MONTHLY PREVENTIVE MAINTENANCE
  1265.  
  1266. %SHUTDOWN-I-STOPQUEMAN, The queue manager will now be stopped.
  1267. SHUTDOWN message on AVALON user SYSTEM at _AVALON$OPA0: 12:08:12.56
  1268. AVALON will shut down in 2 minutes; back up 12:30.  Please log off node AVALON.
  1269. MONTHLY PREVENTIVE MAINTENANCE
  1270.  
  1271. %%%%%%%%% OPCOM, 16-JUL-1988 12:08:12:30 %%%%%%%%%%
  1272. Message from user JOB_CONTROL on AVALON
  1273. -SYSTEM-S-NORMAL, normal successful completion
  1274.  
  1275. %%%%%%%%% OPCOM, 16-JUL-1988 12:08:42:30
  1276. Message from user DECNET on AVALON
  1277. DECnet shutting down
  1278.  
  1279. SHUTDOWN message on AVALON from user SYSTEM at _AVALON$OPA0:  12:09:12.56
  1280. AVALON will shut down in 1 minute; back up 12:30.  Please log off node AVALON.
  1281. MONTHLY PREVENTIVE MAINTENANCE.
  1282.  
  1283. 17 terminals have been notified on AVALON
  1284. %SHUTDOWN-I-SITESHUT,  The site-specific shutdown procedure will now be
  1285. invoked.
  1286. %SHUTDOWN-I-STOPUSER, All user processes will now be stopped.
  1287. %SHUTDOWN-I-REMOVE, All installed images will now be removed.
  1288. %SHUTDOWN-I-DISMOUNT, All volumes will now be dismounted.
  1289. %%%%%%%%%% OPCOM, 16-JUL-1988 12:09:42.30
  1290. Message from user System on AVALON
  1291. _AVALON$OPA0:, AVALON shutdown requested by the operator.
  1292.  
  1293. %%%%%%%%%% OPCOM, 16-JUL-1988 12:10:02.44 %%%%%%%%%%%%%
  1294. Logfile was closed by operator _AVALON$OPA0:
  1295. Logfile was SYS$SYSROOT: [SYSMGR] OPERATOR.LOG;8
  1296.  
  1297. %%%%%%%%%% OPCOM, 16-JUL-1988 12:10:32.20
  1298. Operator _AVALON$OPA0: has been disabled, username SYSTEM
  1299.  
  1300.            SYSTEM SHUTDOWN COMPLETE -- USE CONSOLE TO HALT SYSTEM
  1301.  
  1302. ------------------------------------------------------------------
  1303.  
  1304. 2.10.1.2 DEFINING SHUTDOWN$INFORM_NODES
  1305.  
  1306. Before you execute SYS$SYSTEM:SHUTDOWN.COM, you can define the logical name
  1307. SHUTDOWN$INFORM_NODES to be a list of cluster member nodes.  The nodes listed
  1308. in SHUTDOWN$INFORM_NODES will be notified when the system is shutdown, as shown
  1309. in the following example:
  1310.  
  1311. $  DEFINE SHUTDOWN$INFORM_NODES "NODE1,NODE2,NODE3"
  1312. $   @SYS$SYSTEM:SHUTDOWN
  1313.  
  1314. If you define SHUTDOWN$INFORM_NODES and then execute SYS$SYSTEM:SHUTDOWN.COM,
  1315. all cluster member nodes included in the list are notified of the shutdown.
  1316. Users on the node that is being shut down are always notified regardless of
  1317. whether you define SHUTDOWN$INFORM_NODES.  If you omit the name of the node
  1318. that is being shut down from the list specified in the DEFINE command, the name
  1319. is automatically added to the list by the SHUTDOWN.COM procedure.
  1320.  
  1321. 2.10.2  EMERGENCY SHUTDOWN W/ OPCCRASH
  1322.  
  1323. This section describes how to halt the system immediately w/out performing any
  1324. of the housekeeping functions that ensure an orderly shutdown.  Usually, you
  1325. shut down the system using the orderly shutdown procedure.  You use the
  1326. OPCCRASH procedure only if SHUTDOWN.COM fails.  OPCCRASH performs only the
  1327. following minimal housekeeping functions:
  1328.  
  1329. :  Marks the system disk for dismount and empties all file system data caches.
  1330.  
  1331. :  Writes the modified page list back tot he disk.  This ensures that all
  1332.    writable section files are updated to their correct state before the system
  1333.    crashes and all in-memory data is lost.
  1334.  
  1335. To perform this procedure, you must have the CMKRNL privilege.  You can enter
  1336. the commands from any terminal.
  1337.  
  1338.  
  1339. 1.  Enter the following command to force an immediate shutdown of the system.
  1340.     $ RUN SYS$SYSTEM:OPCCRASH
  1341.  
  1342. 2.  If the system fails to respond after a few minutes, use the CRASH procedure
  1343.     or, if your system does not have a CRASH procedure, enter the emergency
  1344.     shutdown commands described in your VAX processor installation/operation
  1345.     guide.
  1346.  
  1347. 3.  At the system console, the following message is displayed:
  1348.     SYSTEM SHUTDOWN COMPLETE -- USE CONSOLE TO HALT SYSTEM
  1349.  
  1350. 4.  Halt the system.
  1351.  
  1352. EXAMPLE 2-2 ILLUSTRATES AN EMERGENCY SHUTDOWN USING THE OPCCRASH PROCEDURE
  1353.  
  1354. EXAMPLE 2-2:
  1355.  
  1356. $ RUN SYS$SYSTEM:OPCCRASH
  1357.     SYSTEM SHUTDOWN COMPLETE -- USE CONSOLE TO HALT SYSTEM
  1358.  
  1359. ( hit the Control Key then the letter P ) CONTROL/P
  1360. >>>HALT
  1361.  
  1362.      HALTED AT 8000708A
  1363.  
  1364.                                 [ END OF 02.11 ]
  1365. [OTHER WORLD BBS]
  1366.  
  1367.  
  1368. Downloaded From P-80 International Information Systems 304-744-2253 12yrs+
  1369.